package models

// ParamSignUp 注册
type ParamSignUp struct {
	Username   string      `json:"username" binding:"required,max=15,min=5"` //非空,最大字数，最小字数
	Password   string      `json:"password" binding:"required,max=15,min=6"`
	RePassword string      `json:"rePassword" binding:"required,max=15,min=6,eqfield=Password"`
	Email      string      `json:"email"`
	LeveL      int         `json:"level"`
	ClassID    interface{} `json:"classID"`
	TeacherID  interface{} `json:"teacherID"`
	CollegeID  interface{} `json:"collegeID"`
}

// ParamLogin 登录
type ParamLogin struct {
	Username string `json:"username" binding:"required,max=15,min=5"` //非空,最大字数，最小字数
	Password string `json:"password" binding:"required,max=15,min=6"`
}

// AdminEmail 接收对邮箱发送验证码的参数
type AdminEmail struct {
	Username string `json:"username" binding:"required,max=15,min=5"`
	Email    string `json:"email" binding:"required"`
}

// AdminCode 接收验证验证码的参数
type AdminCode struct {
	Username string `json:"username" binding:"required,max=15,min=5"`
	Email    string `json:"email" binding:"required"`     //验证邮箱
	Code     string `json:"emailCode" binding:"required"` //验证码
}

// ParamCollege 接收创建学院参数
type ParamCollege struct {
	ID        int64  `json:"collegeId" binding:"required"`
	Name      string `json:"collegeName"`
	Desc      string `json:"collegeDesc"`
	Operation string `json:"operation" binding:"required"`
}
